package com.dcsgo.myTankGameServers.common;

import java.util.ArrayList;
import java.util.HashMap;

/**
 * @author DCSGO
 * @version 1.0
 * 客户端与服务端通信时的消息对象
 */
public class Message {
    private int mesType;//消息类型
    private HashMap<Integer,PlayerTank> tanks;//坦克的相关信息
    private int receiver;

    public void setMesType(int mesType) {
        this.mesType = mesType;
    }

    public HashMap<Integer,PlayerTank> getTanks() {
        return tanks;
    }

    public int getReceiver() {
        return receiver;
    }

    public void setReceiver(int receive) {
        this.receiver = receive;
    }

    public void setTanks(HashMap<Integer,PlayerTank> tanks) {
        this.tanks = tanks;
    }

    public int getMesType() {
        return mesType;
    }
}
